from .dump_bin import DumpDataAll

def dump_csv(path, target_folder, qlib_dir='~/.qlib/qlib_data'):
    DumpDataAll(csv_path=path, qlib_dir=qlib_dir + '/' + target_folder,
                                symbol_field_name='ts_code',
                                include_fields=['open', 'high','low','close', 'vol', 'amount'],
                                date_field_name='trade_date').dump()

